import { Entity, PrimaryGeneratedColumn } from "typeorm";
import { DateTime, Digdit, Jsonb, Link, Name, PrimaryUuid } from "../utils";


@Entity({
    name: 'auto_red_2'
})
export class AutoRed2 {
    @PrimaryGeneratedColumn()
    id: number;

    @Link()
    link: string;

    @Name({})
    name: string;

    @DateTime({})
    open_time: Date;

    @Digdit({ default: 0 })
    online: number;

    @Digdit({ default: 0 })
    count: number;

    @Jsonb({ name: 'red_packets' })
    redPackets: any[];

    @Digdit({ default: 0 })
    join_count: number;
}